<script setup lang="ts" xmlns="">
import { useVbenModal } from '@vben/common-ui';
import {  monitorJob } from '#/api/system/job/index';
const [BasicModal, modalApi] = useVbenModal({
    showConfirmButton: false,
    showCancelButton: false,
    onOpenChange: async (isOpen) => {
        if (!isOpen) {
            return null;
        }
        modalApi.modalLoading(true);
        const { id } = modalApi.getData() as { id: number | string };
        setupDeptTree(id)
        modalApi.modalLoading(false);
    },
});
async function setupDeptTree(id: number | string) {
    const resp = await monitorJob(id);
    console.log(resp,'==2===')
}
</script>

<template>
    <BasicModal
        :close-on-click-modal="false"
        class="min-h-[600px] w-[550px]"
        title="任务详细"
    >
        <div>

        </div>
    </BasicModal>
</template>
